(function (window) {
    var cookieObj=JSON.parse(sessionStorage.getItem("ifLogin"));
    if(cookieObj!=null){
        $(".header-top>.ht-body>ul>li").eq(1).html(cookieObj.uname);
        $("#load").html("<a href='#'>退出登录</a>")
    }
    $("body").delegate("#load>a","click",function () {
        sessionStorage.removeItem("ifLogin");
        window.location.reload();
    })
    
    $(".buy_cart").on("click",function () {

    })
})(window)